package com.thz.houserental.domain.house;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface HouseService extends IService<House> {
    House addHouse(HouseDto house);

    void deleteHouse(String houseId);

    Page<HouseVo> queryPage(QueryWrapper<House> queryWrapper, Page<HouseVo> housePage);

    void updateHouse(HouseDto houseDto);

    HouseVo getDetail(String houseId);

    /***
     * 下架房源
     * @param houseId 房屋id
     */
    void offLine(String houseId);

    /**
     * 上架房源
     * @param houseId 房屋id
     */
    void onLine(String houseId);
}
